﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PROD_MATERIAL_BOM
// * CreateDate    : 2011-11-21 11:43:32
// * Creater       : CodeSmith
// * LastChangeDate: 2011-11-21 11:43:32
// * LastChanger   : 2011-11-21 11:43:32
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class ProdMaterialBomTable : TableInfo
    {
        public const string C_TableName = "PROD_MATERIAL_BOM";

        public const string C_BOM_ID = "BOM_ID";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_MATERIAL_ID = "MATERIAL_ID";
        public const string C_UNIT_QTY = "UNIT_QTY";
        public const string C_UNIT_WEIGHT = "UNIT_WEIGHT";

        public ProdMaterialBomTable()
        {
            _tableName = "PROD_MATERIAL_BOM";
        }

        protected static ProdMaterialBomTable _current;
        public static ProdMaterialBomTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new ProdMaterialBomTable();

            _current.Add(C_BOM_ID, new ColumnInfo(C_BOM_ID, "BomId", true, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_MATERIAL_ID, new ColumnInfo(C_MATERIAL_ID, "MaterialId", false, typeof(string)));
            _current.Add(C_UNIT_QTY, new ColumnInfo(C_UNIT_QTY, "UnitQty", false, typeof(decimal)));
            _current.Add(C_UNIT_WEIGHT, new ColumnInfo(C_UNIT_WEIGHT, "UnitWeight", false, typeof(decimal)));

        }

        public ColumnInfo BOM_ID
        {
            get { return this[C_BOM_ID]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo MATERIAL_ID
        {
            get { return this[C_MATERIAL_ID]; }
        }

        public ColumnInfo UNIT_QTY
        {
            get { return this[C_UNIT_QTY]; }
        }

        public ColumnInfo UNIT_WEIGHT
        {
            get { return this[C_UNIT_WEIGHT]; }
        }



    }
}

